<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>联系人管理</title>
		<link rel="stylesheet" type="text/css" href="../../layui/css/layui.css"/>
		<link rel="stylesheet" type="text/css" href="../../css/nav_icon.css"/>
		<style type="text/css">
			body{
				overflow-y: hidden;
			}
			.layui-nav-tree{
				padding-top: 30px;
			}
			.layui-nav-tree .layui-nav-item a{
				font-size: 18px;
				height: 60px;
				line-height: 60px;
			}
			.layui-nav-tree .layui-nav-item dl a{
				font-size: 16px;
				height: 50px;
				line-height: 50px;
			}
		</style>
	</head>
	<body>
		<div class="layui-layout" >
			<div class="layui-side layui-bg-black">
				<div class="layui-side-scroll">
					<!-- 左侧导航区域（可配合layui已有的垂直导航） -->
					<ul class="layui-nav layui-nav-tree" lay-filter="test">
						<li class="layui-nav-item layui-nav-itemed">
							<a href="javascript:;" data-index="contact_table.html"><i class="iconfont icon-chanpingongxuliebiao"></i>全部联系人</a>
						</li>
						<li class="layui-nav-item layui-nav-itemed">
							<a href="javascript:;" data-index="contact_me_table.html"><i class="iconfont icon-gongweiguanli"></i>主要联系人</a>
						</li>
						<li class="layui-nav-item layui-nav-itemed">
							<a href="javascript:;" data-index="work_contact.html"><i class="iconfont icon-jianyanguanli"></i>工作人员联系</a>
						</li>
					</ul>
				</div>
			</div>
			<div class="layui-body" style="margin-left: -200px;">
				<!-- 内容主体区域 -->
				<div class="layui-body" id="LAY_app_body">
					<div class="layadmin-tabsbody-item layui-show" style="height: 100%;">
						<iframe src="contact_table.html" frameborder="0" class="layadmin-iframe" style="width: 100%;height: 100%;"></iframe>
					</div>
				</div>
			</div>
			
		</div>
		
		<script src="../../js/jquery3.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../layui/layui.js" type="text/javascript" charset="utf-8"></script>
		<script>
			//JavaScript代码区域
			layui.use('element', function() {
				var element = layui.element;
		
				$(".layui-side a").each(function(index, el) {
					// console.log(el)
					$(el).click(function() {
						// console.log( $(this).attr("data-index"))   
						$(".layui-body iframe").attr("src", $(this).attr("data-index"))	
					})	
				})		
			});
		</script>
	</body>
</html>
